package com.whu.tcx01.hd.calNewRoadMerge;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class OutRoadBean {

    private long roadid;
    private long start;
    private long stop;
    // 用hashmap  存每个方向有多少个子段
    private HashMap<Integer, Long> map;

    public long getRoadid() {
        return roadid;
    }

    public void setRoadid(long roadid) {
        this.roadid = roadid;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getStop() {
        return stop;
    }

    public void setStop(long stop) {
        this.stop = stop;
    }

    public HashMap<Integer, Long> getMap() {
        return map;
    }

    public void setMap(HashMap<Integer, Long> map) {
        this.map = map;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        for (Map.Entry<Integer, Long> entry : map.entrySet()) {
            sb.append("[").append(entry.getKey()).append("\t").append(entry.getValue()).append("]");
        }
        return  roadid + "\t" + start + "\t" + stop + "\t" + sb.toString();
    }
}
